pub mod article;
pub mod comment;

// pub mod comment;
pub(crate) use article::{Article, PartialArticle};
pub(crate) use comment::{Comment, PartialComment};

use sqlx::sqlite::SqlitePool;
pub async fn db_connection(database_url: String) -> anyhow::Result<SqlitePool> {
    // let database_url = env::var("DATABASE_URL")?;
    Ok(SqlitePool::connect(&database_url).await?)
}
